#define _CRT_SECURE_NO_WARNINGS 520

#include<stdio.h>

int main()
{
	int output_num = 0;
	scanf("%d", &output_num);
	for (int i = 1;i <= output_num; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			printf("%2d*%-2d=%-3d ", i, j, i * j);
		}
		printf("\n");
	}
	return 0;
}